package com.yeyaomai.dksns.flowis.service;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;
import com.yeyaomai.dksns.flowis.domain.FlowAuth;

public interface FlowAuthService {

	void addFlowAuth(FlowAuth flowAuth);

	void addFlowAuth_Role(FlowAuth flowAuth);

	void updateFlowAuth(FlowAuth flowAuth);

	void deleteFlowAuth(Long authId);

	FlowAuth getFlowAuthByAuthId(Long authId);
	
	boolean isExistFlowAuth(String authName);
	
	Page<FlowAuth>  listFlowAuth(Integer currentpage);
	
	List<FlowAuth> listFLowAuthByStatus();
	
	Map<Integer,Object> getFlowAuthByRoleId(Long roleId);
	
	Map<Integer,String> getFlowAuthByRole(Long roleId,String userName);
}
